﻿using System;

namespace PmfWeb.Core.Attributes
{
    ///<summary>
    /// 表特性
    ///</summary>
    [AttributeUsage(AttributeTargets.Class)]
    public class TableAttribute : System.Attribute
    {
	    public TableAttribute()
	    {
	        _tableName = "";
	        _description = "";
	    }

        private string _tableName;
        /// <summary>
        /// 数据库表名
        /// </summary>
        public virtual string TableName
        {
            get { return _tableName; }
            set { _tableName = value; }
        }

        private string _description;
        /// <summary>
        /// 表描述
        /// </summary>
        public virtual string Description
        {
            get { return _description; }
            set { _description = value; }
        }

        private string _primarykeys;
        /// <summary>
        /// 表主键(有过个列的话，以逗号隔开)
        /// </summary>
        public virtual string Primarykey
        {
            get { return _primarykeys; }
            set { _primarykeys = value; }
        }

    }

}
